package com.snap.vseries.utils;

public class TEST {
    public static void main(String[] args) {
        //15 7c
        int temp = 5500;
        byte low = (byte) (temp & 0xff);
        byte high = (byte) ((temp & 0xFF00) >> 8);
//        cmd[6] = (byte) ((temp & 0xff00) >> 8);
//        cmd[7] = (byte) (temp & 0xff);
        System.out.println(HexUtils.Byte2Hex(low));
        System.out.println(HexUtils.Byte2Hex(high));
        int result = ((high & 0xff) << 8) + (low & 0xff);
        System.out.println(result);

    }

}
